<!DOCTYPE html> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"> 

<h:head>
	<h:outputStylesheet library="css" name="bootstrap.css"  />
	<h:outputStylesheet library="css" name="starter-template.css"  />
	<h:outputScript library="js" name="bootstrap.js" />
	<meta charset="utf-8"/>
</h:head> 

<body> 
	<ui:include src="menu.xhtml" />

    <div class="container">

      <div class="starter-template">

        <div class="table-responsive">
       	
       	<h:form>
			<h:commandButton 	value="Eliminar todos los módulos" 
								action="#{configController.eliminarAllModulos}" 
								styleClass="btn btn-default btn-lg"/>       	
       	</h:form>

		<h1>Módulos Despacho disponibles</h1>
		<h:dataTable value="#{configController.despachos}" var="despacho" border="1" styleClass="table">
			<h:column>
				<f:facet name="header"> <h:outputText value="ID" /> </f:facet>
				<h:outputText value="#{despacho.idModulo}" />
			</h:column>
			
			<h:column>
				<f:facet name="header"> <h:outputText value="Dir. IP" /> </f:facet>
				<h:outputText value="#{despacho.ipAddress}" />
			</h:column>
			
			<h:column>
				<f:facet name="header"> <h:outputText value="Descripcion" /> </f:facet>
				<h:outputText value="#{despacho.descripcion}" />
			</h:column>		
		</h:dataTable>
		 
		 <h1>Módulos Deposito disponibles</h1>
		 <h:dataTable value="#{configController.depositos}" var="deposito" border="1" styleClass="table">
			<h:column>
				<f:facet name="header"> <h:outputText value="ID" /> </f:facet>
				<h:outputText value="#{deposito.idModulo}" />
			</h:column>
			
			<h:column>
				<f:facet name="header"> <h:outputText value="Dir. IP" /> </f:facet>
				<h:outputText value="#{deposito.ipAddress}" />
			</h:column>
			
			<h:column>
				<f:facet name="header"> <h:outputText value="Descripcion" /> </f:facet>
				<h:outputText value="#{deposito.descripcion}" />
			</h:column>		
		</h:dataTable>
		
		 <h1>Módulos Portal disponibles</h1>
		 <h:dataTable value="#{configController.portales}" var="portal" border="1" styleClass="table">
			<h:column>
				<f:facet name="header"> <h:outputText value="ID" /> </f:facet>
				<h:outputText value="#{portal.idModulo}" />
			</h:column>
			
			<h:column>
				<f:facet name="header"> <h:outputText value="Dir. IP" /> </f:facet>
				<h:outputText value="#{portal.ipAddress}" />
			</h:column>
			
			<h:column>
				<f:facet name="header"> <h:outputText value="Descripcion" /> </f:facet>
				<h:outputText value="#{portal.descripcion}" />
			</h:column>	
			
			<h:column>
				<f:facet name="header"><h:outputText value="Url" /></f:facet>
				<h:outputText value="#{portal.url}" />
			</h:column>	
		</h:dataTable>
		
		<h1>Módulo Logistica disponible</h1>
		<h:dataTable value="#{configController.logistica}" var="logistica"  border="1" styleClass="table">
			<h:column>
				<f:facet name="header"> <h:outputText value="ID" /> </f:facet>
				<h:outputText value="#{logistica.idModulo}" />
			</h:column>
			
			<h:column>
				<f:facet name="header"> <h:outputText value="Dir. IP" /> </f:facet>
				<h:outputText value="#{logistica.ipAddress}" />
			</h:column>
			
			<h:column>
				<f:facet name="header"> <h:outputText value="Descripcion" /> </f:facet>
				<h:outputText value="#{logistica.descripcion}" />
			</h:column>	
			
			<h:column>
				<f:facet name="header"> <h:outputText value="Sincronico" /> </f:facet>
				<h:outputText value="#{logistica.sincronico}" />
			</h:column>		
			
			<h:column>
				<f:facet name="header"> <h:outputText value="URL WS" /> </f:facet>
				<h:outputText value="#{logistica.url}" />
			</h:column>
			
			<h:column>
				<f:facet name="header"> <h:outputText value="Cola JMS" /> </f:facet>
				<h:outputText value="#{logistica.colaJMS}" />
			</h:column>
			
			<h:column>
				<f:facet name="header"> <h:outputText value="User JMS" /> </f:facet>
				<h:outputText value="#{logistica.userJMS}" />
			</h:column>
			
			<h:column>
				<f:facet name="header"> <h:outputText value="Pass JMS" /> </f:facet>
				<h:outputText value="#{logistica.passJMS}" />
			</h:column>
		</h:dataTable>
		
		</div>
		
		<h:form>
	    	<h:link outcome="menu.xhtml" value="volver a Menu"/>
	    </h:form>
      </div> <!-- starte-template -->

    </div><!-- /.container -->


    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
    <script src="../../dist/js/bootstrap.min.js"></script>
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
</body> 
</html>
